package cn.sinata.wanglin.property.activity;

import android.support.v4.app.Fragment;
import android.support.v4.content.ContextCompat;

import com.xilada.xldutils.activitys.TabLayoutActivity;

import cn.sinata.wanglin.R;
import cn.sinata.wanglin.property.fragment.ExpressDeliveryFragment;

/**
 * 物业---快递领物
 */
public class ExpressDeliveryActivity extends TabLayoutActivity {

    @Override
    protected void initView() {
        super.initView();
        setTitle("快递领物");

        mTabLayout.setBackgroundColor(getResources().getColor(R.color.black));
        mTabLayout.setSelectedTabIndicatorColor(ContextCompat.getColor(this, R.color.yellow_color_81d));
        mTabLayout.setTabTextColors(ContextCompat.getColor(this, R.color.textColorHint),ContextCompat.getColor(this, R.color.yellow_color_81d));
    }

    @Override
    protected Fragment getFragment(int position) {
        return ExpressDeliveryFragment.newInstance(position);
    }

    @Override
    protected String[] getTitles() {
        return new String[]{"未领取","已领取"};
    }
}
